// JavaScript Document
var jobid = document.getElementById("jobid").value;
function leadchange(obj) {
	$(".jb").remove();
	var arr = document.getElementById("applyBox").getElementsByTagName("li");
	for (var i = 0; i < arr.length; i++) {
		var a = arr[i];
		a.style.background = "#fff";
		a.style.color = "#000";
	}
	;
	obj.style.background = "#E77817";
	obj.style.color = "#fff";
	leadzt();
}
function leadzt(trans) {
	var strTrans = jobid;
	$.ajax({
				type : "POST", // 请求方式
				url : "myLeadServlet.scx.szb", // 请求路径
				cache : false,
				data : "strTrans=" + strTrans, // 传参
				dataType : 'json', // 返回值类型
				success : function(msg) {
					var cc = 0;
					for (i in msg) {
						cc++;
						var information = {
								content : msg[i].content,
							jobName : msg[i].jobName,
						};
						$("<li class='jb'>"
						+ "<div class='name' style='padding-left: 4px;'>"+ information["jobName"] + "</div>"
						+ "<div class='text' style='padding-left: 10px;'>"+ information["content"] + "</div>"
						+ "</li>").appendTo("#DataList");
					}
				},
				error : function() {
					alert("error");
				}
			});
}
